<?php

use Illuminate\Support\Facades\Route;

/**
 * 后台路由设置
 */

Route::group(['prefix' => config('admin.prefix'), 'namespace' => 'Admin', 'middleware' => ['locale']], function () {


    /* 后台登录页 */
    Route::get('/login', 'LoginController@index')->name('admin.login');
    Route::post('/login', 'LoginController@login');

    // 后台普通文件上传
    Route::post('/upload', 'CommonController@upload')->name('admin.upload');
    /* 后台分片上传文件 */
    Route::post('/process', 'CommonController@preProcess')->name('admin.process');
    Route::post('/uploading', 'CommonController@saveChunk')->name('admin.uploading');


    // 后台普通文件上传
    Route::post('/alert', 'AlertController@alert')->name('admin.alert');

    /* 需要登录验证地址 */
    Route::group(['middleware' => ['admin.auth', 'admin.menu']], function () {

        /* 退出登录 */
        Route::get('/logout', 'LoginController@logout')->name('admin.logout');
        /* 后台首页 */
        Route::get('/', 'HomeController@index')->name('admin.index');

        /* 个人中心 */
        Route::get('/profile/index', 'ProfileController@index')->name('admin.profile');
        Route::get('/profile/edit', 'ProfileController@edit')->name('admin.profile.edit');
        Route::post('/profile/edit', 'ProfileController@edit');

        /* 密码修改 */
        Route::get('/profile/password', 'ProfileController@password')->name('admin.profile.password');
        Route::post('/profile/password', 'ProfileController@password');

        /* 系统设置 */
        /* 系统设置 */
        Route::get('/setting/app', 'SettingController@app')->name('admin.setting.app');
        Route::post('/setting/app', 'SettingController@app');
        /* 站点设置 */
        Route::get('/setting/site', 'SettingController@site')->name('admin.setting.site');
        Route::post('/setting/site', 'SettingController@site');
        /* 登录设置 */
        Route::get('/setting/register', 'SettingController@register')->name('admin.setting.register');
        Route::post('/setting/register', 'SettingController@register');


        /* 权限设置 */
        /* 管理员管理 */
        Route::get('/manager/index', 'ManagerController@index')->name('admin.manager.index');
        Route::get('/manager/add', 'ManagerController@add')->name('admin.manager.add');
        Route::post('/manager/add', 'ManagerController@add');
        Route::get('/manager/edit/{id}', 'ManagerController@edit')->name('admin.manager.edit');
        Route::post('/manager/edit/{id}', 'ManagerController@edit');
        Route::get('/manager/delete/{id}', 'ManagerController@delete')->name('admin.manager.delete');
        Route::get('/manager/view/{id}', 'ManagerController@view')->name('admin.manager.view');

        Route::post('/manager/role', 'ManagerController@role')->name('admin.manager.role');

        /* 角色管理 */
        Route::get('/role/index', 'RoleController@index')->name('admin.role.index');
        Route::get('/role/add', 'RoleController@add')->name('admin.role.add');
        Route::post('/role/add', 'RoleController@add');
        Route::get('/role/edit/{id}', 'RoleController@edit')->name('admin.role.edit');
        Route::post('/role/edit/{id}', 'RoleController@edit');
        Route::get('/role/delete/{id}', 'RoleController@delete')->name('admin.role.delete');
        Route::get('/role/view/{id}', 'RoleController@view')->name('admin.role.view');
        Route::get('/role/permission/{id}', 'RoleController@permission')->name('admin.role.permission');
        Route::post('/role/permission/{id}', 'RoleController@permission');

        /* 菜单管理 */
        Route::get('/menu/index', 'MenuController@index')->name('admin.menu.index');
        Route::get('/menu/add', 'MenuController@add')->name('admin.menu.add');
        Route::post('/menu/add', 'MenuController@add');
        Route::get('/menu/edit/{id}', 'MenuController@edit')->name('admin.menu.edit');
        Route::post('/menu/edit/{id}', 'MenuController@edit');
        Route::get('/menu/delete/{id}', 'MenuController@delete')->name('admin.menu.delete');
        Route::get('/menu/view/{id}', 'MenuController@view')->name('admin.menu.view');

        /* 用户菜单管理 */
//        Route::get('/usermenu/index', 'UserMenuController@index')->name('admin.usermenu.index');
//        Route::match(['get', 'post'],'/usermenu/add', 'UserMenuController@add')->name('admin.usermenu.add');
//        Route::match(['get', 'post'],'/usermenu/edit/{id}', 'UserMenuController@edit')->name('admin.usermenu.edit');
//        Route::get('/usermenu/delete/{id}', 'UserMenuController@delete')->name('admin.usermenu.delete');
//        Route::get('/usermenu/view/{id}', 'UserMenuController@view')->name('admin.usermenu.view');

        /* 字典管理 */
        Route::get('/map/index', 'MapController@index')->name('admin.map.index');
        Route::match(['get', 'post'],'/map/add', 'MapController@add')->name('admin.map.add');
        Route::match(['get', 'post'],'/map/edit/{id}', 'MapController@edit')->name('admin.map.edit');
        Route::get('/map/delete/{id}', 'MapController@delete')->name('admin.map.delete');
        Route::get('/map/data/{id}', 'MapController@data')->name('admin.map.data');

        Route::match(['get', 'post'],'/map/add_data/{map_id}', 'MapController@add_data')->name('admin.map.add_data');
        Route::match(['get', 'post'],'/map/edit_data/{id}', 'MapController@edit_data')->name('admin.map.edit_data');
        Route::get('/map/delete_data/{id}', 'MapController@delete_data')->name('admin.map.delete_data');

        /* 等级管理 */
//        Route::get('/grade/index', 'GradeController@index')->name('admin.grade.index');
//        Route::match(['get', 'post'],'/grade/add', 'GradeController@add')->name('admin.grade.add');
//        Route::match(['get', 'post'],'/grade/edit/{id}', 'GradeController@edit')->name('admin.grade.edit');
//        Route::get('/grade/delete/{id}', 'GradeController@delete')->name('admin.grade.delete');
//        Route::get('/grade/view/{id}', 'GradeController@view')->name('admin.grade.view');

        /* 训练内容分类管理 */
//        Route::get('/category/index', 'CategoryController@index')->name('admin.category.index');
//        Route::match(['get', 'post'],'/category/add', 'CategoryController@add')->name('admin.category.add');
//        Route::match(['get', 'post'],'/category/edit/{id}', 'CategoryController@edit')->name('admin.category.edit');
//        Route::get('/category/delete/{id}', 'CategoryController@delete')->name('admin.category.delete');
//        Route::get('/category/view/{id}', 'CategoryController@view')->name('admin.category.view');
//
//        /* 训练内容管理 */
//        Route::get('/game/index', 'GameController@index')->name('admin.game.index');
//        Route::match(['get', 'post'],'/game/add', 'GameController@add')->name('admin.game.add');
//        Route::match(['get', 'post'],'/game/edit/{id}', 'GameController@edit')->name('admin.game.edit');
//        Route::get('/game/delete/{id}', 'GameController@delete')->name('admin.game.delete');
//        Route::get('/game/view/{id}', 'GameController@view')->name('admin.game.view');
//        Route::match(['get', 'post'],'/game/import', 'GameController@import')->name('admin.game.import');
//
//        /* 机构管理 */
//        Route::get('/agency/index', 'AgencyController@index')->name('admin.agency.index');
//        Route::match(['get', 'post'],'/agency/add', 'AgencyController@add')->name('admin.agency.add');
//        Route::match(['get', 'post'],'/agency/edit/{id}', 'AgencyController@edit')->name('admin.agency.edit');
//        Route::get('/agency/delete/{id}', 'AgencyController@delete')->name('admin.agency.delete');
//        Route::get('/agency/view/{id}', 'AgencyController@view')->name('admin.agency.view');
//
//        /* 机构设备管理 */
//        Route::get('/agencydevice/index/{agency_id}', 'AgencyDeviceController@index')->name('admin.agencydevice.index');
//        Route::get('/agencydevice/view/{id}', 'AgencyDeviceController@view')->name('admin.agencydevice.view');
//        Route::match(['get', 'post'],'/agencydevice/add/{agency_id}', 'AgencyDeviceController@add')->name('admin.agencydevice.add');
//        Route::match(['get', 'post'],'/agencydevice/edit/{id}', 'AgencyDeviceController@edit')->name('admin.agencydevice.edit');
//        Route::match(['get', 'post'],'/agencydevice/delete/{id}', 'AgencyDeviceController@delete')->name('admin.agencydevice.delete');
//
//        /* 设备类型管理 */
//        Route::get('/kind/index', 'KindController@index')->name('admin.kind.index');
//        Route::match(['get', 'post'],'/kind/add', 'KindController@add')->name('admin.kind.add');
//        Route::match(['get', 'post'],'/kind/edit/{id}', 'KindController@edit')->name('admin.kind.edit');
//        Route::get('/kind/delete/{id}', 'KindController@delete')->name('admin.kind.delete');
//        Route::get('/kind/view/{id}', 'KindController@view')->name('admin.kind.view');
//
//        /* 设备管理 */
//        Route::get('/device/index', 'DeviceController@index')->name('admin.device.index');
//        Route::match(['get', 'post'],'/device/add', 'DeviceController@add')->name('admin.device.add');
//        Route::match(['get', 'post'],'/device/edit/{id}', 'DeviceController@edit')->name('admin.device.edit');
//        Route::get('/device/delete/{id}', 'DeviceController@delete')->name('admin.device.delete');
//        Route::get('/device/view/{id}', 'DeviceController@view')->name('admin.device.view');
//
//        /* 用户管理 */
//        Route::get('/user/index', 'UserController@index')->name('admin.user.index');
//        Route::match(['get', 'post'],'/user/add', 'UserController@add')->name('admin.user.add');
//        Route::match(['get', 'post'],'/user/edit/{id}', 'UserController@edit')->name('admin.user.edit');
//        Route::get('/user/delete/{id}', 'UserController@delete')->name('admin.user.delete');
//        Route::get('/user/view/{id}', 'UserController@view')->name('admin.user.view');
//        Route::get('/user/enable/{id}', 'UserController@enable')->name('admin.user.enable');
//        Route::get('/user/ajaxagencyuser', 'UserController@ajaxAgencyUser')->name('admin.user.ajaxAgencyUser');
//
//        /* 用户、机构类型管理 */
//        Route::get('/type/index', 'TypeController@index')->name('admin.type.index');
//        Route::match(['get', 'post'],'/type/add', 'TypeController@add')->name('admin.type.add');
//        Route::match(['get', 'post'],'/type/edit/{id}', 'TypeController@edit')->name('admin.type.edit');
//        Route::get('/type/delete/{id}', 'TypeController@delete')->name('admin.type.delete');
//        Route::get('/type/view/{id}', 'TypeController@view')->name('admin.type.view');


        /* 评估工具表管理 */
//        Route::get('/tool/index', 'ToolController@index')->name('admin.tool.index');
//        Route::match(['get', 'post'],'/tool/add', 'ToolController@add')->name('admin.tool.add');
//        Route::match(['get', 'post'],'/tool/edit/{id}', 'ToolController@edit')->name('admin.tool.edit');
//        Route::get('/tool/delete/{id}', 'ToolController@delete')->name('admin.tool.delete');
      /*  Route::get('/tool/view/{id}', 'AssessmentController@view')->name('admin.tool.view');*/

        /* 评估表管理 */
//        Route::get('/assessment/result', 'AssessmentController@result')->name('admin.assessment.result');
//        Route::get('/assessment/index/{child_id}', 'AssessmentController@index')->name('admin.assessment.index');
//        Route::match(['get', 'post'],'/assessment/add/{child_id}', 'AssessmentController@add')->name('admin.assessment.add');
//        Route::match(['get', 'post'],'/assessment/edit/{id}', 'AssessmentController@edit')->name('admin.assessment.edit');
//        Route::get('/assessment/delete/{id}', 'AssessmentController@delete')->name('admin.assessment.delete');
//        Route::get('/assessment/view/{id}', 'AssessmentController@view')->name('admin.assessment.view');
//        Route::get('/assessment/ajaxdata/{child_id}', 'AssessmentController@ajaxdata')->name('admin.assessment.ajaxdata');
//
//        /* 训练信息管理 */
//        Route::get('/training/index', 'TrainingController@index')->name('admin.training.index');
//        //Route::match(['get', 'post'],'/training/add', 'TrainingController@add')->name('admin.training.add');
//        //Route::match(['get', 'post'],'/training/edit/{id}', 'TrainingController@edit')->name('admin.training.edit');
//        Route::get('/training/delete/{id}', 'TrainingController@delete')->name('admin.training.delete');
//        Route::get('/training/view/{id}', 'TrainingController@view')->name('admin.training.view');

        /*数据库备份/还原*/
        Route::get('/database/index', 'DatabaseController@index')->name('admin.database.index');
        Route::get('/database/backup', 'DatabaseController@backup')->name('admin.database.backup');
        Route::get('/database/restore/{filename}', 'DatabaseController@restore')->name('admin.database.restore');
        Route::get('/database/download/{filename}', 'DatabaseController@download')->name('admin.database.download');
        Route::get('/database/delete/{filename}', 'DatabaseController@delete')->name('admin.database.delete');

        /*统计分析*/
//        Route::get('/analysis/issuccess', 'AnalysisController@issuccess')->name('admin.analysis.issuccess');
//        Route::get('/analysis/getsuccessdata', 'AnalysisController@getsuccessdata')->name('admin.analysis.getsuccessdata');
//
//        Route::get('/analysis/basecount', 'AnalysisController@basecount')->name('admin.analysis.basecount');
//        Route::get('/analysis/middlecount', 'AnalysisController@middlecount')->name('admin.analysis.middlecount');
//        Route::get('/analysis/highcount', 'AnalysisController@highcount')->name('admin.analysis.highcount');
//
//        Route::get('/analysis/gettrainingdata/{type}', 'AnalysisController@gettrainingdata')->name('admin.analysis.gettrainingdata');
//
//        /*老师管理学生数量统计*/
//        Route::get("analysis/children","AnalysisController@children")->name('admin.analysis.children');
//        Route::get('/analysis/getchildrendata', 'AnalysisController@getChildrenData')->name('admin.analysis.getchildrendata');
//
//        /* 版本管理 */
//        Route::get('/version/index', 'VersionController@index')->name('admin.version.index');
//        Route::match(['get', 'post'],'/version/add', 'VersionController@add')->name('admin.version.add');
//        Route::match(['get', 'post'],'/version/edit/{id}', 'VersionController@edit')->name('admin.version.edit');
//        Route::get('/version/view/{id}', 'VersionController@view')->name('admin.version.view');
//        Route::get('/version/delete/{id}', 'VersionController@delete')->name('admin.version.delete');

        /* 站内消息 */
        Route::get('/notice/index', 'NoticeController@index')->name('admin.notice.index');
        Route::get('/notice/read', 'NoticeController@read')->name('admin.notice.read');
        Route::get('/notice/unread', 'NoticeController@unread')->name('admin.notice.unread');
        Route::get('/notice/view/{id}', 'NoticeController@view')->name('admin.notice.view');
        Route::get('/notice/delete/{id}', 'NoticeController@delete')->name('admin.notice.delete');
        Route::get('/notice/notify', 'NoticeController@notify')->name('admin.notice.notify');

        /*数据大屏*/
        //Route::get('/datascan/index', 'DataScanController@index')->name('admin.datascan.index');
        Route::get('/datascan/index', function (){
            return redirect("http://s.cetc365.com");
        })->name('admin.datascan.index');

        /* 任课老师管理 */
        Route::get('/teacher/index', 'TeacherController@index')->name('admin.teacher.index');
        Route::match(['get', 'post'],'/teacher/add', 'TeacherController@add')->name('admin.teacher.add');
        Route::match(['get', 'post'],'/teacher/edit/{id}', 'TeacherController@edit')->name('admin.teacher.edit');
        Route::get('/teacher/delete/{id}', 'TeacherController@delete')->name('admin.teacher.delete');
        Route::get('/teacher/view/{id}', 'TeacherController@view')->name('admin.teacher.view');
        /* 后勤老师管理 */
        Route::get('/logistics/index', 'LogisticsController@index')->name('admin.logistics.index');
        Route::match(['get', 'post'],'/logistics/add', 'LogisticsController@add')->name('admin.logistics.add');
        Route::match(['get', 'post'],'/logistics/edit/{id}', 'LogisticsController@edit')->name('admin.logistics.edit');
        Route::get('/logistics/delete/{id}', 'LogisticsController@delete')->name('admin.logistics.delete');
        Route::get('/logistics/view/{id}', 'LogisticsController@view')->name('admin.logistics.view');

        /* 教师等级管理 */
        Route::get('/teacherLevel/index', 'TeacherLevelController@index')->name('admin.level.index');
        Route::match(['get', 'post'],'/teacherLevel/add', 'TeacherLevelController@add')->name('admin.level.add');
        Route::match(['get', 'post'],'/teacherLevel/edit/{id}', 'TeacherLevelController@edit')->name('admin.level.edit');
        Route::get('/teacherLevel/delete/{id}', 'TeacherLevelController@delete')->name('admin.level.delete');
        Route::get('/teacherLevel/view/{id}', 'TeacherLevelController@view')->name('admin.level.view');

        /* 班主任管理 */
        Route::get('/classTeacher/index', 'ClassTeacherController@index')->name('admin.classTeacher.index');
        Route::match(['get', 'post'],'/classTeacher/add/{id}', 'ClassTeacherController@add')->name('admin.classTeacher.add');
        Route::get('/classTeacher/delete/{id}', 'ClassTeacherController@delete')->name('admin.classTeacher.delete');
        Route::get('/classTeacher/select', 'ClassTeacherController@select')->name('admin.classTeacher.select');

        /* 课程管理 */
        Route::get('/lesson/index', 'LessonController@index')->name('admin.lesson.index');
        Route::match(['get', 'post'],'/lesson/add', 'LessonController@add')->name('admin.lesson.add');
        Route::match(['get', 'post'],'/lesson/edit/{id}', 'LessonController@edit')->name('admin.lesson.edit');
        Route::get('/lesson/delete/{id}', 'LessonController@delete')->name('admin.lesson.delete');
        Route::get('/lesson/view/{id}', 'LessonController@view')->name('admin.lesson.view');
        /* 课程表管理 */
        Route::get('/classLessonTeacher/index', 'ClassLessonTeacherController@index')->name('admin.classLessonTeacher.index');
        Route::match(['get', 'post'],'/classLessonTeacher/add', 'ClassLessonTeacherController@add')->name('admin.classLessonTeacher.add');
        Route::match(['get', 'post'],'/classLessonTeacher/edit/{id}', 'ClassLessonTeacherController@edit')->name('admin.classLessonTeacher.edit');
        Route::get('/classLessonTeacher/delete/{id}', 'ClassLessonTeacherController@delete')->name('admin.classLessonTeacher.delete');
        Route::get('/classLessonTeacher/view/{id}', 'ClassLessonTeacherController@view')->name('admin.classLessonTeacher.view');

        /* 班级管理 */
        Route::get('/classes/index', 'ClassesController@index')->name('admin.classes.index');
        Route::match(['get', 'post'],'/classes/add', 'ClassesController@add')->name('admin.classes.add');
        Route::match(['get', 'post'],'/classes/edit/{id}', 'ClassesController@edit')->name('admin.classes.edit');
        Route::get('/classes/delete/{id}', 'ClassesController@delete')->name('admin.classes.delete');
        Route::get('/classes/view/{id}', 'ClassesController@view')->name('admin.classes.view');

        /* 学生/学生管理 */
        Route::get('/student/index', 'StudentController@index')->name('admin.student.index');
        Route::match(['get', 'post'],'/student/add', 'StudentController@add')->name('admin.student.add');
        Route::match(['get', 'post'],'/student/edit/{id}', 'StudentController@edit')->name('admin.student.edit');
        Route::get('/student/delete/{id}', 'StudentController@delete')->name('admin.student.delete');
        Route::get('/student/view/{id}', 'StudentController@view')->name('admin.student.view');

        /* 心理健康管理 */
        Route::get('/mental/index', 'MentalController@index')->name('admin.mental.index');
        Route::get('/mental/record', 'MentalController@record')->name('admin.mental.record');
        Route::get('/mental/export', 'MentalController@export')->name('admin.mental.export');
        Route::match(['get', 'post'],'/mental/add', 'MentalController@add')->name('admin.mental.add');
        Route::get('/mental/delete/{id}', 'MentalController@delete')->name('admin.mental.delete');
        Route::get('/mental/view/{id}', 'MentalController@view')->name('admin.mental.view');
        Route::match(['get', 'post'],'/mental/edit/{id}', 'MentalController@edit')->name('admin.mental.edit');

        /* 异常行为管理 */
        Route::get('/abnormal/index', 'AbnormalController@index')->name('admin.abnormal.index');
        Route::get('/abnormal/type', 'AbnormalController@type')->name('admin.abnormal.type');
        Route::get('/abnormal/record', 'AbnormalController@record')->name('admin.abnormal.record');
        Route::get('/abnormal/export', 'AbnormalController@export')->name('admin.abnormal.export');
        Route::match(['get', 'post'],'/abnormal/add', 'AbnormalController@add')->name('admin.abnormal.add');
        Route::get('/abnormal/delete/{id}', 'AbnormalController@delete')->name('admin.abnormal.delete');
        Route::get('/abnormal/view/{id}', 'AbnormalController@view')->name('admin.abnormal.view');
        Route::match(['get', 'post'],'/abnormal/edit/{id}', 'AbnormalController@edit')->name('admin.abnormal.edit');

        /* 勤奋指数管理 */
        Route::get('/viewTime/index', 'ViewTimeController@index')->name('admin.viewTime.index');
        Route::get('/viewTime/record', 'ViewTimeController@record')->name('admin.viewTime.record');
        Route::get('/viewTime/export', 'ViewTimeController@export')->name('admin.viewTime.export');
        Route::match(['get', 'post'],'/viewTime/add', 'ViewTimeController@add')->name('admin.viewTime.add');
        Route::get('/viewTime/delete/{id}', 'ViewTimeController@delete')->name('admin.viewTime.delete');
        Route::get('/viewTime/view/{id}', 'ViewTimeController@view')->name('admin.viewTime.view');
        Route::match(['get', 'post'],'/viewTime/edit/{id}', 'ViewTimeController@edit')->name('admin.viewTime.edit');

        /* 专注度管理 */
        Route::get('/attention/index', 'AttentionController@index')->name('admin.attention.index');
        Route::get('/attention/record', 'AttentionController@record')->name('admin.attention.record');
        Route::get('/attention/export', 'AttentionController@export')->name('admin.attention.export');
        Route::match(['get', 'post'],'/attention/add', 'AttentionController@add')->name('admin.attention.add');
        Route::get('/attention/delete/{id}', 'AttentionController@delete')->name('admin.attention.delete');
        Route::get('/attention/view/{id}', 'AttentionController@view')->name('admin.attention.view');
        Route::match(['get', 'post'],'/attention/edit/{id}', 'AttentionController@edit')->name('admin.attention.edit');

        /* 纪律管理 */
        Route::get('/discipline/index', 'DisciplineController@index')->name('admin.discipline.index');
        Route::get('/discipline/record', 'DisciplineController@record')->name('admin.discipline.record');
        Route::get('/discipline/export', 'DisciplineController@export')->name('admin.discipline.export');
        Route::match(['get', 'post'],'/discipline/add', 'DisciplineController@add')->name('admin.discipline.add');
        Route::get('/discipline/delete/{id}', 'DisciplineController@delete')->name('admin.discipline.delete');
        Route::get('/discipline/view/{id}', 'DisciplineController@view')->name('admin.discipline.view');
        Route::match(['get', 'post'],'/discipline/edit/{id}', 'DisciplineController@edit')->name('admin.discipline.edit');

        /* 积极性管理 */
        Route::get('/enthusiasm/index', 'EnthusiasmController@index')->name('admin.enthusiasm.index');
        Route::get('/enthusiasm/record', 'EnthusiasmController@record')->name('admin.enthusiasm.record');
        Route::get('/enthusiasm/export', 'EnthusiasmController@export')->name('admin.enthusiasm.export');
        Route::match(['get', 'post'],'/enthusiasm/add', 'EnthusiasmController@add')->name('admin.enthusiasm.add');
        Route::get('/enthusiasm/delete/{id}', 'EnthusiasmController@delete')->name('admin.enthusiasm.delete');
        Route::get('/enthusiasm/view/{id}', 'EnthusiasmController@view')->name('admin.enthusiasm.view');
        Route::match(['get', 'post'],'/enthusiasm/edit/{id}', 'EnthusiasmController@edit')->name('admin.enthusiasm.edit');

        /* 达人管理 */
        Route::get('/master/index', 'MasterController@index')->name('admin.master.index');
        Route::get('/master/record', 'MasterController@record')->name('admin.master.record');
        Route::get('/master/export', 'MasterController@export')->name('admin.master.export');
        Route::match(['get', 'post'],'/master/add', 'MasterController@add')->name('admin.master.add');
        Route::get('/master/delete/{id}', 'MasterController@delete')->name('admin.master.delete');
        Route::get('/master/view/{id}', 'MasterController@view')->name('admin.master.view');
        Route::match(['get', 'post'],'/master/edit/{id}', 'MasterController@edit')->name('admin.master.edit');

    });
});